POV-Ray : Newsgroups : povray.newusers : pattern as function : Re: pattern as function Server Time
31 Jul 2024 06:25:01 EDT (-0400)
  Re: pattern as function  
From: Warp
Date: 4 Nov 2002 15:09:01
Message: <3dc6d3dd@news.povray.org>
Dennis Miller <dhm### [at] attbicom> wrote:
> I see it now. Thanks again. I'm still not clear how to alter the turbulence
> parameter once it is declared in a scene, For example, how would I pop it
> directly here:
> #declare Sphere = function {f_marble_turb{x,y,z}}

  If you *really* want to do it, then there's a way. I don't know how
much overhead it adds, though:

function { pattern { function { f_marble(x,y,z) } turbulence 1 } }

(Untested, but should work.)

  I would say that creating it directly as:

function { pattern { marble turbulence 1 } }

is better.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.